package com.teradyne.merlin2.ui.client.activitymappers;

import com.google.gwt.activity.shared.Activity;
import com.google.gwt.activity.shared.ActivityMapper;
import com.google.gwt.place.shared.Place;
import com.google.inject.Inject;
import com.google.inject.Provider;
import com.teradyne.merlin2.ui.client.activities.TopMenuActivity;

public class TopActivityMapper implements ActivityMapper {

	private final Provider<TopMenuActivity> topMenuActivityProvider;

	@Inject
	public TopActivityMapper(Provider<TopMenuActivity> topMenuActivityProvider) {
		this.topMenuActivityProvider = topMenuActivityProvider;
	}

	@Override
	public Activity getActivity(Place place) {
		return topMenuActivityProvider.get();
	}
}